//
//  LanguageManager.h
//  BTCBOX
//
//  Created by Apple on 2017/11/24.
//  Copyright © 2017年 jianfengChen. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#define kLanguagePath               @"LanguageList"
#define kLanguage_Ja                @"ja"     //日语
#define kLanguagePre_zh_Hans        @"zh-Hans"//简体中文
#define kLanguagePre_zh_Hant        @"zh-Hant-HK"//繁体中文
#define kLanguagePre_en             @"en"  //英语

@interface SelectLanguageItem : NSObject
@property (nonatomic, strong) UIImage *iconImage;//图标
@property(nonatomic, copy) NSString *lanName;//语言种类
@property(nonatomic, copy) NSString *lanPre;//语言简称
@end

typedef void(^GetAllLanCallback)(NSArray *allLan);
@interface LanguageManager : NSObject
+ (LanguageManager *)sharedManager;
/**
 获取当前语言环境

 @return 返回当前语言环境
 */
- (NSString *)getCurrentLanguage;
/**
 获取系统语言

 @return 返回系统语言
 */
- (NSString *)getCurrentSystemLanguage;
/**
 获取所有可以更改的语言

 @param getAllLanCallback 回调返回所有可以更换的语言
 */
- (void)getAllLanguage:(GetAllLanCallback)getAllLanCallback;
- (NSString *)getLanguage:(NSString *)key;

@end
